.PHONY: all
all:alarm_demo signal_demo signal_block_demo sig_demo
# 默认目标，依赖于 alarm_demo

alarm_demo:alarm_demo.cc
	g++ -o $@ $^ -std=c++11
signal_demo:signal_demo.cc
	g++ -o $@ $^ -std=c++11
signal_block_demo:signal_block_demo.cc
	g++ -o $@ $^ -std=c++11
sig_demo:sig_demo.cc
	g++ -o $@ $^ -std=c++11

.PHONY: clean
clean:
	rm -f alarm_demo signal_demo signal_block_demo sig_demo
# 删除编译生成的 alarm_demo 和 signal_demo 程序
